import request from "@/utils/request";

/**
 * 仪表盘-线索客户新增数量
 * @param query
 * @returns {*}
 */
export function getCustomerOverview(query) {
  return request({
    url: "/crm/dashboard/customer/overview/",
    method: "get",
    params: query
  });
}

/**
 * 通话时长折现图数据
 * @param query
 * @returns {*}
 */
export function getCallLogDurationOverview(query) {
  return request({
    url: "/crm/call_log/duration/overview/",
    method: "get",
    params: query
  });
}

/**
 * 拨号统计
 * @param query
 * @returns {*}
 */
export function getCallLogNumberOverview(query) {
  return request({
    url: "/crm/call_log/number/overview/",
    method: "get",
    params: query
  });
}

/**
 * 接通率
 * @param query
 * @returns {*}
 */
export function getCallLogConnRateOverview(query) {
  return request({
    url: "/crm/call_log/conn_rate/overview/",
    method: "get",
    params: query
  });
}
